<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
</head>
<body>
	<script>
		function test() {
			// console.log("循环前：" + i);
			for (let i = 0; i < 5; i++) {
				console.log("中：" + i);
			}
			console.log("后：" + i);
		}

		test();
	</script>
</body>
</html>